From: Jan D. Date: Sat, 22 Jan 2011 11:33:32 +0000 (+0100) Subject: * nsterm.m (constrainFrameRect): Only constrain the first time called. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5107 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d593bd2a7ea9d92aa1218a389e502974130653cb;p=emacs.git * nsterm.m (constrainFrameRect): Only constrain the first time called. --- diff --git a/src/ChangeLog b/src/ChangeLog index bbba934028b..b91c4732ea7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-01-22 Jan Djärv + + * nsterm.m (constrainFrameRect): Only constrain the first time called. + 2011-01-21 Jan Djärv * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first diff --git a/src/nsterm.m b/src/nsterm.m index da438296fff..1d86b3ec866 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -5063,7 +5063,6 @@ ns_term_shutdown (int sig) NSTRACE (windowDidBecomeKey); - emacsframe->output_data.ns->dont_constrain = 1; if (emacsframe != old_focus) dpyinfo->x_focus_frame = emacsframe; @@ -5678,6 +5677,7 @@ ns_term_shutdown (int sig) if (f->output_data.ns->dont_constrain) return frameRect; + f->output_data.ns->dont_constrain = 1; return [super constrainFrameRect:frameRect toScreen:screen]; } @@ -5685,8 +5685,6 @@ ns_term_shutdown (int sig) /* called only on resize clicks by special case in EmacsApp-sendEvent */ - (void)mouseDown: (NSEvent *)theEvent { - struct frame *f = ((EmacsView *)[self delegate])->emacsframe; - f->output_data.ns->dont_constrain = 1; if (ns_in_resize) { NSSize size = [[theEvent window] frame].size;